package com.example.Controller;

import com.example.Service.SneezeService;
import com.example.staticlei.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/sneeze")
@RestController
@Slf4j
@CrossOrigin
public class SneezeController {
    @Autowired
    private SneezeService sneezeService;
    @GetMapping("/sneezes")
    public Result ReturnEyeMessage(@RequestParam String time){
        return Result.success(sneezeService.sneezeMessage(time)) ;
    }
}
